package question3;
//爬行类
public abstract class PaXing extends Animal {
    private String legnum;//腿数量

    public PaXing() {
    }

    public PaXing(String name, String sex, String age, String legnum) {
        super(name, sex, age);
        this.legnum = legnum;
    }

    public String getLegnum() {
        return legnum;
    }

    public void setLegnum(String legnum) {
        this.legnum = legnum;
    }
    public abstract void  swimming();
}
